package kamikazehero.game.score;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import kamikazehero.constants.Constants;

public class GameScore {
	
	private int id;
	private String name;
	private int score;
	private String date;
	
	public GameScore(){}
	
	public GameScore(String name, int score){
		this.name = name;
		this.score = score;
		this.date = this.getCalendarDate();
	}
	
	public GameScore(String name, int score, String date){
		this.name = name;
		this.score = score;
		this.date = date;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	
	private String getCalendarDate(){
		Calendar calendar = Calendar.getInstance();
		SimpleDateFormat dateFormat = new SimpleDateFormat(Constants._DATE_FORMAT_STORE);
		return dateFormat.format(calendar.getTime());
	}
	
	public String getFormattedDate(){
		return null;
	}
}
